#ifndef WRAP_STAT_H
#define WRAP_STAT_H

struct stat;

namespace Wrap {

/// @see https://man7.org/linux/man-pages/man2/fstat.2.html
/// @param fd fstat() is identical to stat(), except that the file about which
/// information is to be retrieved is specified by the file descriptor @c fd.
/// @param buf These functions return information about a file, in the buffer
/// pointed to by @c buf.
/// @return On success, zero is returned. On error, -1 is returned, and errno
/// is set to indicate the error.
/// @throw EBADF @c fd is not a valid open file descriptor.
/// @throw EFAULT Bad address.
/// @throw ENOMEM Out of memory (i.e., kernel memory).
int fstat_(int fd, struct stat *buf);

}



#endif